package com.bwie.controller;

import com.bwie.entity.Order;
import com.bwie.service.OrderFromService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 高洋
 * @Classname OrderFromController
 * @Description
 * @Date 2022/6/29 19:03
 */
@Controller
@RequestMapping("/order")
public class OrderFromController {
    @Autowired
    private OrderFromService orderFromService;

    @RequestMapping("/insert")
    @ResponseBody
    public Integer orderInsert(Order order){
        int i = orderFromService.insert(order);
        return i;
    }
}
